package com.OA.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.OA.dao.Log_CY_mapper;
import com.OA.dao.LoginMapper;
import com.OA.entity.DepartMentName;
import com.OA.entity.Log;
import com.OA.entity.LogComment;
import com.OA.entity.LogType;
import com.OA.entity.User;
import com.OA.service.Log_CY_service;
import com.OA.service.LoginService;
import com.OA.util.Page;

@Service
public class LoginServiceImpl implements LoginService{

	@Autowired
	private LoginMapper mapper;
	
	/**
	 * 根据用户姓名加载用户
	 * @param userName
	 * @return
	 */
	public User loadUserByName(String userName){
		User user = mapper.loadUserByName(userName);
		return user;
	}
	
}
